package com.example.demo.model;

import lombok.Data;

import java.sql.Date;
import java.text.SimpleDateFormat;

@Data
public class UserInfo {
    private int id;
    private String userName;
    private String password;
    private String githubUrl;
    private int delete_flag;
    private Date create_time;
    private Date update_time;

    public  String getCreate_time() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        return simpleDateFormat.format(create_time);
    }


}
